home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / doc / quel / destroy.doc < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.4 KB  |  63 lines

  1.  
  2.  
  3.  
  4.  
  5.      DESTROY(QUEL)                2/21/79                DESTROY(QUEL)
  6.  
  7.  
  8.  
  9.      NAME
  10.           destroy - destroy existing relation(s)
  11.  
  12.      SYNOPSIS
  13.           _d_e_s_t_r_o_y relname { , relname }
  14.           _d_e_s_t_r_o_y [ _p_e_r_m_i_t | _i_n_t_e_g_r_i_t_y ] relname [ integer { , integer
  15.           } | _a_l_l ]
  16.           _d_e_s_t_r_o_y _d_e_l_i_m groupname
  17.  
  18.      DESCRIPTION
  19.           _D_e_s_t_r_o_y removes relations from the data base,  removes  con-
  20.           straints  or  permissions from a relation, and removes user-
  21.           defined delimitors.  Only the relation owner may  destroy  a
  22.           relation  or  its  permissions and integrity constraints.  A
  23.           relation may be emptied of tuples, but not destroyed,  using
  24.           the delete statement or the modify statement.
  25.  
  26.           If the relation being destroyed has secondary indices on it,
  27.           the  secondary  indices  are also destroyed.  Destruction of
  28.           just a secondary index does not affect the primary  relation
  29.           it indexes.
  30.  
  31.           To destroy individual permissions or constraints for a rela-
  32.           tion,  the  _i_n_t_e_g_e_r  arguments  should be those printed by a
  33.           _h_e_l_p _p_e_r_m_i_t (for _d_e_s_t_r_o_y _p_e_r_m_i_t) or a  _h_e_l_p  _i_n_t_e_g_r_i_t_y  (for
  34.           _d_e_s_t_r_o_y  _i_n_t_e_g_r_i_t_y)  on  the  same relation.  To destroy all
  35.           constraints or permissions, the _a_l_l keyword may be  used  in
  36.           place  of  individual  integers.   To destroy constraints or
  37.           permissions, either the _i_n_t_e_g_e_r arguments or the _a_l_l keyword
  38.           must be present.
  39.  
  40.           To destroy a delimitor group, the groupname must  be  speci-
  41.           fied.   This destroys the delimitors permanently, as opposed
  42.           to unusing the group.
  43.  
  44.      EXAMPLE
  45.           /* Destroy the emp relation */
  46.               destroy emp
  47.               destroy emp, parts
  48.  
  49.           /* Destroy some permissions on parts, and all integrity
  50.            * constraints on employee
  51.            */
  52.              destroy permit parts 0, 4, 5
  53.              destroy integrity employee
  54.  
  55.           /* Destroy the "paper" delimitor group */
  56.              destroy delim paper
  57.  
  58.      SEE ALSO
  59.           create(quel),   delete(quel),    delim(quel),    help(quel),
  60.           index(quel), modify(quel)
  61.  
  62.  
  63.